//
//  MCUserTextCell.m
//  IMChezhil
//
//  Created by zhangliucheng on 15/7/27.
//  Copyright (c) 2015年 CheZhil. All rights reserved.
//

#import "MCUserTextCell.h"

@interface MCUserTextCell ()

@property (weak, nonatomic) IBOutlet UILabel *content;

@property (weak, nonatomic) IBOutlet UILabel *sendStatus;

@end

@implementation MCUserTextCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setMessage:(IMTextMessage *)message {
    _message = message;
    self.content.text = message.content;
    
    NSString *status = nil;
    if (message.sentStatus == SentStatusSending) {
        status = @"发送中";
    } else if (message.sentStatus == SentStatusArrived) {
        status = @"发送成功";
    } else {
        status = @"发送失败";
    }
    self.sendStatus.text = status;
}

@end
